package cn.gift.client;

import cn.gift.domain.LoginUser;
import cn.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description: AuthClient
 * @date: 2023/4/25 11:40
 * @author: ZhaoLc
 * @version: 1.0
 */
@Component
@FeignClient(value = "gift-auth",fallbackFactory = AuthClientFallbackFactory.class )
public interface AuthClient {
    @PutMapping("/loginUser")
    public AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

    @PostMapping("/loginUser/getLoginUser")
    public AjaxResult getLoginUser(@RequestBody LoginUser loginUser);
}
